const co = (method) => (args) => new Promise((resolve, reject) => {
  method({ ...args, success: resolve, fail: reject });
});

module.exports = { co };
